﻿/**
 * for java.util.Map
 *
 */
function Map(className){
if(className == null || "" == className)className="java.util.HashMap";
  this.javaClass=className
  this.map={};
}
Map.prototype.put=function(key,value){this.map[key]=value;}
Map.prototype.get=function(key){return this.map[key];}
/**
 * for common java bean whith get/set.
 */
function POJO(className){
  this.javaClass=className;
}
POJO.prototype.put=function(key,value){this[key]=value;}
POJO.prototype.get=function(key){return this[key];}
/**
 * for common java bean whith get/set.
 */
function Bean(className){
  this.javaClass=className;
}
Bean.prototype.set=function(key,value){this[key]=value;}
Bean.prototype.get=function(key){return this[key];}

/**
 * for java List classes such as java.util.ArrayList,java.util.Vector etc.
 *java.util.Vector
 */
function List(className){
if(className == null || "" == className)className="java.util.ArrayList";
  this.javaClass=className
  this.list=[];
}
List.prototype.add=function(value){this.list.push(value);}
List.prototype.get=function(i){return this.list.get(i);}
List.prototype.size=function(){return this.list.length;}

